﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Tours.aspx.cs" Inherits="Tours" %>
<%@ Register Namespace="Encosia" Assembly="HighslideImage" TagPrefix="encosia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<encosia:HighslideManager ID="HighslideManager1" runat="server" OutlineType="Beveled" ControlBar="true" />
    <div class="contents">
        <tr>
            <p class="title_tour">
                TOURS FESIVAL 6/2011</p>
            <asp:Repeater runat="server" ID="RptTourList">
                <ItemTemplate>
                    <div class="book_now_l">
                        <div class="item" >
                            <div class="img_bk">
                                <%--<img src="<%# Eval("pathLink") %>" width="171px" height = "106px"/>--%>
                                <encosia:HighslideImage  runat="server" width="171px" height = "106px"
                                        ImageUrl='<%# Eval("pathLink") %>'
                                        FullImageURL='<%# Eval("pathLink") %>'  />
                            </div>
                            <div class="title_des">
                                <a href="ToursDetail.aspx?tourID=<%#Eval("tourID") %>" style="font-size:larger"><span>
                                    <%# Eval("tourName") %></span></a>
                            </div>
                            <div class="title_des">
                                <p>
                                    Start date:
                                    <%# Eval("startDate", "{0:d}") %></p>
                            </div>
                            <div class="title_des">
                                <p>
                                    Price:
                                    <%# Eval("price", "{0:c}") %>
                                    <span id="sellPrice"><%# Eval("sellPrice", "{0:c}") %></span></p>
                            </div>
                            <div class="title_des">
                                <p>
                                    Code:
                                    <%# Eval("tourCode") %></p>
                            </div>
                            <div class="btn_book">
                                <a href="Book.aspx?tourID=<%#Eval("tourID") %>">
                                    <input type="image" src="img/btn_book.png" /></a>
                            </div>
                        </div>
                    </div>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <div class="book_now_rb">
                        <div class="item">
                            <div class="img_bk">
                                <%--<img src="<%# Eval("pathLink") %>" width="171px" height = "106px"/>--%>
                                <encosia:HighslideImage  runat="server" width="171px" height = "106px"
                                        ImageUrl='<%# Eval("pathLink") %>'
                                        FullImageURL='<%# Eval("pathLink") %>'  />
                            </div>
                            <div class="title_des">
                                <a href="ToursDetail.aspx?tourID=<%#Eval("tourID") %>" style="font-size:larger"><span>
                                    <%# Eval("tourName") %></span></a>
                            </div>
                            <div class="title_des">
                                <p>
                                    Start date:
                                    <%# Eval("startDate", "{0:d}") %></p>
                            </div>
                            <div class="title_des">
                                <p>
                                    Price: <%# Eval("price", "{0:c}") %> 
                                    <div><%# Eval("sellPrice", "{0:c}") %></div>
                                </p>
                            </div>
                            <div class="title_des">
                                <p>
                                    Code:
                                    <%# Eval("tourCode") %></p>
                            </div>
                            <div class="btn_book">
                                <a href="Book.aspx?tourID=<%#Eval("tourID") %>">
                                    <input type="image" src="img/btn_book.png" /></a>
                            </div>
                        </div>
                    </div>
                </AlternatingItemTemplate>
            </asp:Repeater>
        </tr>
    </div>
    <div>
    <br />
        <table cellpadding="0" border="0">
            <tr>
                <td align="right">
                    <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" 
                        OnClick="lbtnFirst_Click" ForeColor="Yellow">First page</asp:LinkButton>
                    &nbsp;
                </td>
                <td align="right">
                    <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" 
                        OnClick="lbtnPrevious_Click" ForeColor="Yellow">Previous</asp:LinkButton>&nbsp;&nbsp;
                </td>
                <td align="center" valign="middle">
                    <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                        OnItemDataBound="dlPaging_ItemDataBound">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                CommandName="Paging" Text='<%# Eval("PageText") %>' ForeColor="Yellow"></asp:LinkButton>&nbsp;
                        </ItemTemplate>
                    </asp:DataList>
                </td>
                <td align="left">
                    &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                        OnClick="lbtnNext_Click" ForeColor="Yellow">Next</asp:LinkButton>
                </td>
                <td align="left">
                    &nbsp;
                    <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" 
                        OnClick="lbtnLast_Click" ForeColor="Yellow">Last page</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center" style="height: 30px" valign="middle">
                    <asp:Label ID="lblPageInfo" runat="server" ForeColor="White"></asp:Label>
                </td>
            </tr>
        </table>
        <%--    </td>
        </tr>--%>
    </div>
</asp:Content>


